<script>
  //要导出的json数据
  var jsonData = [
    {
      name:'路人甲',
      phone:'123456789',
      email:'000@123456.com'
    },
    {
      name:'炮灰乙',
      phone:'123456789',
      email:'000@123456.com'
    },
    {
      name:'土匪丙',
      phone:'123456789',
      email:'000@123456.com'
    },
    {
      name:'流氓丁',
      phone:'123456789',
      email:'000@123456.com'
    },
  ]

  // 导出
  toExport(jsonData, '姓名,电话,邮箱')
</script>